#if !defined(AFX_XEIM_CMDDLG_H__4DE71072_9F44_4980_95B5_2CE7E049F59C__INCLUDED_)
#define AFX_XEIM_CMDDLG_H__4DE71072_9F44_4980_95B5_2CE7E049F59C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// XEIM_CmdDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CXEIM_CmdDlg dialog
class CXeimDlg;
class CXEIM_CmdDlg : public CDialog
{
// Construction
public:
	void SendText(LPCTSTR szText);
	void AddPrompt();
	void AddText(LPCTSTR szData);
	void Go(LPCTSTR commandLine);
	CString m_strUID;
	void ToCloseWindow();
	CXEIM_CmdDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CXEIM_CmdDlg)
	enum { IDD = IDD_DIALOG_CMD };
	CEdit	m_log;
	CString	m_cmd;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CXEIM_CmdDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	CXeimDlg *m_pDlg;
	HANDLE SpawnAndRedirect(LPCTSTR commandLine, HANDLE *hStdOutputReadPipe, LPCTSTR lpCurrentDirectory);
	// Generated message map functions
	//{{AFX_MSG(CXEIM_CmdDlg)
	virtual void OnCancel();
	virtual void OnOK();
	afx_msg void OnDestroy();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_XEIM_CMDDLG_H__4DE71072_9F44_4980_95B5_2CE7E049F59C__INCLUDED_)
